import java.util.Properties;

public class PropertiesDemo11 {
    public static void main(String[] args) {
        Properties properties = new Properties();// 属性类,只能放字符串
        properties.setProperty("user", "root");
        properties.setProperty("port", "3306");

        String user = properties.getProperty("user");
        System.out.println(user);
    }
}
